package com.gxkj.projects.myshopx.services.impl;

import com.gxkj.common.utils.ListPager;
import com.gxkj.projects.myshopx.dao.DbConfigDaoImpl;
import com.gxkj.projects.myshopx.entitys.DbConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class SystemInitServiceImpl implements InitializingBean {

    Logger LOG = LoggerFactory.getLogger(SystemInitServiceImpl.class);

    @Autowired
    private DbConfigDaoImpl dbConfigDao;

    public void afterPropertiesSet() throws Exception {
       // ListPager<DbConfig> dbConfigListPager = dbConfigDao.doPageHQL(0,Integer.MAX_VALUE,null);
//        LOG.info("系统启动，查到的结果为："+ JSON.toJSONString(dbConfigListPager));
        LOG.info("系统启动");
    }
}
